# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/28 下午6:26
 @Author  : tgy
 
"""
import os

def test01():
    with open('info.log',mode='rt',encoding='GBK') as f:
        print(f.read().encode('utf-8'))


if __name__ == '__main__':
    ...
    print(os.path.abspath('./info.log'))
    print(os.path.expandvars('./info.log'))
    print(os.path.expanduser('./info.log'))
    for name in os.listdir('.'):
        print(name)
    print(os.stat('info.log'))
    test01()